Special methods

There are some special methods of the Data Objects that are invoked automatically if they are implemented:



You can define those methods in your manually coded partial classes (case insensitive) with private or public access modifiers.



public partial class Employee

{

      private void creationComplete()

      {

               // do some default value settings

      }


      private void preDelete()

      {

               // do some pre-deletion stuff

      }


      private void prePersist()

      {

               // do some pre-persistence stuff

      }

}